﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SocialFront.Providers.Blog;

namespace SocialFront.Web.usercontrols.Blog
{
    public partial class HomeBlogList : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<Entities.Blog> blogs = BlogProvider.Provider.GetAllBlogs(5, b => b.CreatedDate);
            blogList.DataSource = blogs;
            blogList.DataBind();
        }
    }
}